/*
 * ForRent.java
 *
 * Created on March 28, 2007, 9:49 AM
 *
 */

package edu.byu.isys413.samlam;

/**
 * for rent
 * @author Nick
 */
public class ForRent extends Physical{
    //total times the item has been rented
    private int timesRented;
    //the id of the current rental if the item is rented
    private String currentRental;
    
    /**
     * Creates a new instance of Backup
     * @param id id
     */
    public ForRent(String id) {
        super(id);
    }
    
    /**
     * get times rented
     * @return get tiems rented
     */
    public int getTimesRented() {
        return timesRented;
    }
    
    /**
     * set times rented
     * @param timesRented times rented
     */
    public void setTimesRented(int timesRented) {
        this.timesRented = timesRented;
        this.dirty = true;
    }
    
    /**
     * get current rental
     * @return get current rental
     */
    public String getCurrentRental() {
        return currentRental;
    }
    
    /**
     * set current rental
     * @param currentRental current rental
     */
    public void setCurrentRental(String currentRental) {
        this.currentRental = currentRental;
        this.dirty = true;
    }
}
